package com.vhly.remoteapi.yahoo.contact;

import org.w3c.dom.Element;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: vhly[FR]
 * Date: 2010-12-5
 * Time: 17:00:53
 * Email: vhly@163.com
 */
public abstract class FieldValue {
    /**
     * Serial content to XML
     *
     * @return String
     */
    public abstract String toXML();

    /**
     * Parse Element
     * @param el Element
     */
    public abstract void parse(Element el);

    /**
     * read object from DataInput
     * @param din DataInput
     */
    public abstract void readObject(DataInput din) throws IOException;

    /**
     * Write object to DataOutput
     * @param dout DataOutput
     */
    public abstract void writeObject(DataOutput dout) throws IOException;
}
